﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Office.Master" AutoEventWireup="true" CodeBehind="CustomPermission.aspx.cs" Inherits="ASPNETVN.PORTAL.Administration.Module.CustomPermission" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <asp:Label ID="Label1" runat="server" Text="Phân chức năng theo nhóm quyền"></asp:Label>
        </legend>
        <br />
        <table id="Table1" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td>
                    <asp:DropDownList ID="ddlRole" runat="server" AutoPostBack="True" DataSourceID="sdsRole" DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="ddlRole_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <br />
                    <asp:SqlDataSource ID="sdsRole" runat="server" ConnectionString="<%$ ConnectionStrings:MSSQL %>" SelectCommand="p_SYSTEM_Role_SelectAll" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
                            <asp:Parameter DefaultValue="0" Name="PortalID" Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 50%" valign="top">
                    <asp:Panel ID="pnlFunction" runat="server" Height="200px" CssClass="Panel" ScrollBars="Auto">
                        <asp:CheckBoxList ID="chkFunction" runat="server" CellPadding="0" CellSpacing="0" DataSourceID="sdsFunction" DataTextField="Name" DataValueField="ID">
                        </asp:CheckBoxList>
                    </asp:Panel>
                    <asp:SqlDataSource ID="sdsFunction" runat="server" ConnectionString="<%$ ConnectionStrings:MSSQL %>" SelectCommand="p_SYSTEM_Function_SelectBy_GeneralModuleDefinitionID" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:Parameter Name="GUID" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    <hr />
    <br />
    <asp:LinkButton ID="btnUpdate" runat="server" Text="<%$ Resources:Strings, BUTTON_SAVE %>"></asp:LinkButton>
    <asp:LinkButton ID="btnCancel" runat="server"></asp:LinkButton><br />
    <br />
</asp:Content>
